package com.example.serviceprovider.service;

import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2020-03-05 20:54
 */
@RestController
public class EchoServiceController {

    @GetMapping("/echo/{msg}")
    public  String echo(@PathVariable String msg){
        System.out.println("我你大爷的接通了");
        return "echo:"+msg;
    }
}
